home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / sound / sndplaydoublebuffer / _headers / interrupt_routines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.6 KB  |  62 lines

  1. /*
  2.     File:        Interrupt_Routines.h
  3.  
  4.     Contains:    Headers for routines demonstrating how to manage interrupt routines for sound play.
  5.  
  6.     Written by: Mark Cookson    
  7.  
  8.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/31/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #ifndef __INTERRUPT_ROUTINES__
  24. #define __INTERRUPT_ROUTINES__
  25.  
  26. #include <Sound.h>
  27.  
  28. #ifndef __SOUNDSTRUCT__
  29. #include "SoundStruct.h"
  30. #endif
  31.  
  32. #ifndef __DBFFERRORS__
  33. #include "DBFF_Errors.h"
  34. #endif
  35.  
  36. #ifndef __DOUBLEBUFFERFROMFILE__
  37. #include "DoubleBufferFromFile.h"
  38. #endif
  39.  
  40. #ifndef __MUNGEBUFFER__
  41. #include "MungeBuffer.h"
  42. #endif
  43.  
  44. #ifndef __DEFINES__
  45. #include "Defines.h"
  46. #endif
  47.  
  48. /* Function declarations */
  49. #ifdef powerc
  50. pascal    void    ASoundFileCallBack        (myParmBlkPtr mypb);
  51. #else
  52. pascal    void    ASoundFileCallBack        (myParmBlkPtr mypb:__a0);
  53. #endif
  54. pascal    void    ASoundDoubleBackProc    (SndChannelPtr chan,
  55.                                         SndDoubleBufferPtr doubleBuffer);
  56. pascal    void    ASoundDoneCallBack        (SndChannelPtr chan,
  57.                                         SndCommand *cmd);
  58.  
  59. extern Boolean    gBackwards, gSoundDone;
  60.  
  61. #endif
  62.